* {
  margin: 0;
  padding: 0;
}

// 清除浮动
.clearfix:after {
  content: "";
  display: block;
  clear: both;
}

// 版心宽度，居住
.wrapper {
  width: 1496px;
  margin: auto;
}

@media screen and (max-width: 1500px) {
  .wrapper {
    width: 1258px;
  }
}

@media screen and (max-width: 1300px) {
  .wrapper {
    width: 1005px;
  }
}

.page {
  margin-top: 52px;
  font-size: 14px;

  header {
    width: 100%;
    height: 52px;
    box-shadow: 0 1px 0 rgb(0 0 0 / 6%);
    background: #fff;
    position: fixed;
    top: 0;
    z-index: 999;

    .wrapper {
      height: 52px;
      position: relative;
      display: flex;
      align-items: center;
      font-size: 14px;

      .logo {
        width: 80px;
        height: 32px;
        margin-right: 20px;
      }

      a {
        text-decoration: none;
        margin-right: 20px;

        &.find {
          color: #c90000;
        }

        &.race {
          color: #999;

          &:hover {
            color: #c90000;
          }
        }
      }

      .form {
        display: flex;
        position: relative;
        background: #f5f5f5;
        border-radius: 8px;
        margin-right: 20px;
        flex: 1;

        .downPull {
          border: 0;
          color: #999;
          background: transparent;
          // position: absolute;
          // top: 7px;
        }

        input {
          width: 100%;
          height: 32px;
          font-size: 14px;
          color: #828282;
          background: transparent;
          border-radius: 8px;
          box-sizing: border-box;
          outline: 0;
          border: 0;
        }

        .select {
          display: block;
          width: 32px;
          height: 32px;
          background: url(../assets/menu_sprite.svg) 5px -93px no-repeat;
          position: absolute;
          right: 0;
          margin-right: 0;

          &:hover {
            background: url(../assets/menu_sprite.svg) -44px -93px no-repeat;
          }
        }
      }

      .works {
        position: relative;
        width: 74px;
        height: 32px;
        color: #ef735b;
        padding: 5px 0 0 5px;
        // background: url(../assets/works.svg) 6px center no-repeat;
        // padding: 0 30px 0 42px;
        background-color: #fef4f3;
        border-radius: 8px;
        cursor: pointer;

        span {
          display: block;
          width: 68px;
          height: 26px;
          background: linear-gradient(rgb(255, 0, 0), rgb(255, 100, 0));
          margin: auto;
          border-radius: 2px;
          color: #fff;
          font-size: 14px;
          text-align: center;
          line-height: 26px;
          font-weight: 800;
          opacity: 0.5;
        }

        #worksCanvas {
            background: linear-gradient(rgb(255, 0, 0), rgb(255, 100, 0));
        }

        i {
          border: 6px solid;
          border-color: transparent transparent transparent #fef4f3;
          width: 0;
          height: 0;
          display: block;
          position: absolute;
          right: -12px;
          top: 50%;
          transform: translateY(-50%);
        }
      }

      .nav-icon {
        width: 32px;
        height: 32px;
        background-image: url(../assets/menu_sprite.svg);
        background-repeat: no-repeat;
        background-position: -54px -834px;
        cursor: pointer;

        &:hover {
          background-position: 2px -834px;
        }
      }

      .navBack {
        display: none;
        position: absolute;
        width: 248px;
        height: 236px;
        border: 1px solid #ccc;
        right: 0;
        top: 48px;
        background-color: #fff;

        i {
          border: 8px solid;
          border-color: transparent transparent #ccc transparent;
          width: 0;
          height: 0;
          display: block;
          position: absolute;
          left: 50%;
          transform: translateX(-50%);
          top: -16px;
        }
      }

      .login {
        width: 110px;
        height: 32px;
        background-color: #ec414d;
        color: #fff;
        text-align: center;
        line-height: 32px;
        cursor: pointer;

        &:hover {
          background-color: #f00;
        }
      }
    }
  }

  main {
    padding: 1px;
    background-color: #f5f5f5;
    margin-bottom: 90px;

    .wrapper {
      .menu {
        // width: 1496px;
        margin-top: 20px;
        background-color: #fff;
        position: relative;

        .menuLeft {
          width: 90px;
          height: 32px;
          position: absolute;
          top: 15px;
          left: 16px;
          border: 1px solid #ededed;
          border-radius: 3px;
          line-height: 32px;
          display: flex;
          justify-content: space-between;

          span {
            width: 45px;
            text-align: center;
            background-color: #f5f5f5;
            cursor: pointer;

            &:hover {
              color: #c90000;
            }

            &.active {
              background-color: #fff;

              &:hover {
                color: #000;
              }
            }
          }
        }

        .menuRight {
          margin-top: 20px;
          padding: 21px 62px 1px 166px;
          // box-shadow: 0 1px 3px 0 rgb(0 0 0 / 2%), 0 4px 8px 0 rgb(0 0 0 / 2%);
          border-radius: 2px;
          background: #fff;
          // height: 40px;
          // min-height: 40px;
          overflow: hidden;

          ul {
            list-style: none;
            max-height: 40px;
            overflow: hidden;

            li {
              float: left;
              margin-right: 30px;
              margin-bottom: 20px;
              cursor: pointer;

              &:hover {
                color: #c90000;
              }

              &.active {
                color: #c90000;
              }
            }
          }

          img {
            position: absolute;
            top: 20px;
            right: 20px;
            transform: rotate(180deg);
            transition: transform 0.24s ease-in-out;
          }
        }
      }
    }

    .leftMenuContent {
      .wrapper {
        width: 1510px;
        display: none;

        &.active {
          display: block;
        }

        .content {
          margin-top: 16px;
          display: none;
          min-height: 1000px;

          &.active {
            // display: flex;
            // justify-content: start;
            // flex-wrap: wrap;
            display: block;
            text-align: left;
          }

          .board {
            display: inline-block;
            margin: 0 12px 20px 0;
            width: 236px;
            height: 349px;
            box-shadow: 0 1px 3px rgb(0 0 0 / 2%), 0 4px 8px rgb(0 0 0 / 2%);
            border-radius: 3px;
            font-size: 12px;
            background-color: #fff;
            position: relative;

            .link {
              height: 299px;
              padding: 10px 0 0 10px;
              overflow: hidden;
              position: relative;

              & > img {
                width: 70px;
                height: 70px;
                filter: brightness(0.9);

                &.large {
                  width: 216px;
                  height: 216px;
                }
              }

              .text {
                position: absolute;
                left: 10px;
                top: 10px;
                width: 216px;
                height: 289px;

                h3 {
                  padding: 8px 0 0 8px;
                  font-size: 14px;
                  font-weight: 700;
                  overflow: hidden;
                  text-overflow: ellipsis;
                  white-space: nowrap;
                  color: #fff;
                  text-shadow: 0 1px 3px rgb(0 0 0 / 50%);
                }

                h4 {
                  margin-top: 3px;
                  height: 14px;
                  line-height: 14px;
                  font-size: 10px;
                  opacity: 1;
                  color: #fff;
                  padding: 0 0 0 8px;
                }

                .avatar {
                  display: flex;
                  position: absolute;
                  left: 6px;
                  bottom: 79px;
                  border-radius: 14px;
                  max-width: 137px;
                  height: 28px;
                  background-color: rgba(0, 0, 0, 0.4);
                  color: #fff;
                  justify-content: space-between;
                  align-items: center;

                  .urlname {
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                  }
                }
              }
            }

            .linkBack {
              display: none;
              width: 100%;
              height: 299px;
              position: absolute;
              top: 0;
              background-color: rgba(0, 0, 0, 0.3);
              font-size: 20px;
              text-align: center;
              padding-top: 80px;
              box-sizing: border-box;
              color: #fff;

              i {
                border: 8px solid;
                border-color: #ccc transparent transparent transparent;
                width: 0;
                height: 0;
                display: block;
                position: absolute;
                left: 75%;
                bottom: -16px;
              }
            }

            .followBoard {
              display: flex;
              justify-content: space-evenly;

              .notice {
                display: inline-block;
                width: 110px;
                border-radius: 2px;
                font-size: 14px;
                text-align: center;
                // padding: 0 12px;
                height: 28px;
                line-height: 28px;
                background: #ededed;
                border: 1px solid #ededed;
                cursor: pointer;
                text-decoration: none;
                color: #444;
                white-space: nowrap;

                &:hover {
                  background: #ccc;
                }
              }

              .proceeding {
                display: inline-block;
                border: 1px solid #d9d9d9;
                border-radius: 2px;
                width: 70px;
                height: 30px;
                line-height: 28px;
                text-align: center;
                white-space: nowrap;
                color: #505050;
                cursor: pointer;
                text-decoration: none;
              }
            }
          }
        }
      }

      @media screen and (max-width: 1500px) {
        .wrapper {
          width: 1258px;
        }
      }

      @media screen and (max-width: 1300px) {
        .wrapper {
          width: 1005px;
        }
      }
    }
  }

  footer {
    display: none;
    justify-content: space-between;
    width: 100%;
    height: 90px;
    position: fixed;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    padding: 0 200px;
    box-sizing: border-box;
    color: #fff;

    .leftFoot {
      .title {
        margin: 25px 0 3px;
        font-size: 20px;
      }

      .subtitle {
      }
    }

    .rightFoot {
      height: 90px;
      line-height: 90px;
      display: flex;
      align-items: center;

      .words {
        // line-height: 90px;
      }

      .pic {
        margin-left: 20px;

        a {
          display: inline-block;
          width: 45px;
          height: 45px;
          background: url(../assets/icons_login_fixbg.svg) no-repeat;
          background-position: 0 0;
          vertical-align: middle;

          &:nth-of-type(2) {
            background-position: -60px 0;
          }

          &:nth-of-type(3) {
            background-position: -120px 0;
          }

          &:nth-of-type(4) {
            background-position: -180px 0;
          }
        }
      }
    }
  }

  .model {
    z-index: 1000;
    display: none;

    .mask {
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      position: fixed;
      top: 0;
    }

    .dialog {
      width: 520px;
      height: 422px;
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      border: 1px solid #ccc;
      padding: 30px 0 20px;
      background: #fff;

      img.flower {
        display: block;
        margin: 0 auto;
      }

      .otherLogin {
        width: 286px;
        margin: 0 auto;
        position: relative;
        margin-top: 20px;
        text-align: center;

        .withLine {
          font-size: 16px;
          color: #999;
          margin: 0 auto;
          position: relative;
          text-align: center;

          &:before {
            content: "";
            border-top: 1px solid #ededed;
            display: block;
            position: absolute;
            width: 50px;
            top: 8px;
            left: 0;
          }

          &::after {
            content: "";
            border-top: 1px solid #ededed;
            display: block;
            position: absolute;
            width: 50px;
            top: 8px;
            right: 0;
          }
        }

        .loginButtons {
          margin: 15px 0 20px;

          a {
            display: inline-block;
            width: 48px;
            height: 48px;
            margin-right: 7px;
            background-image: url(../assets/login_icons_tiny.svg);
            background-repeat: no-repeat;
            background-position: 0 0;

            &:hover {
              background-position: 0 -80px;
            }

            &:nth-of-type(2) {
              background-position: -80px 0;

              &:hover {
                background-position: -80px -80px;
              }
            }

            &:nth-of-type(3) {
              background-position: -160px 0;

              &:hover {
                background-position: -160px -80px;
              }
            }

            &:nth-of-type(4) {
              background-position: -240px 0;

              &:hover {
                background-position: -240px -80px;
              }
            }

            &:nth-of-type(5) {
              background-position: -320px 0;
              margin-right: 0;

              &:hover {
                background-position: -320px -80px;
              }
            }
          }
        }

        input {
          &.clearInput {
            margin-bottom: 10px;
            width: 100%;
            display: inline-block;
            padding: 0 10px;
            height: 38px;
            font-size: 16px;
            line-height: 1;
            color: #777;
            background: #fff;
            border: 1px solid #ddd;
            border-radius: 2px;
            box-sizing: border-box;
          }

          &.inputLogin {
            width: 100%;
            height: 38px;
            border-color: #e31725;
            background: #e31725;
            color: #fff;
            box-shadow: none;
            cursor: pointer;
            border: 0;
            font-size: 18px;
          }
        }

        .switchBack {
          width: 100%;
          display: flex;
          justify-content: space-between;

          a {
            text-decoration: none;
            color: #9a0000;

            &:hover {
              text-decoration: underline;
            }
          }
        }
      }

      .close {
        position: absolute;
        top: 0;
        right: 0;
        width: 36px;
        height: 36px;
        background: url(../assets/msg_close.png) no-repeat;
        background-position: center;
        cursor: pointer;
      }
    }
  }
}
